package model;
import java.util.*;
import java.text.*;

public class date {

	public static void main(String[] args) {
		/*try {
		String salt = HashingProvider.getSalt();
		System.out.println("salt: " + salt);
		System.out.println("salt length: " + salt.length());
		String hashed = HashingProvider.hashSHA256WithSalt("Aa123456", salt);
		System.out.println("hash: "+hashed);
		System.out.println("hash length: "+hashed.length());
		} catch (NoSuchAlgorithmException e) {
		e.printStackTrace();
		} catch (IOException e) {
		e.printStackTrace();
		}*/


		DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
		// Get the date today using Calendar object.
		Date today = Calendar.getInstance().getTime(); 
		// Using DateFormat format method we can create a string 
		// representation of a date with the defined format.
		String reportDate = df.format(today);
		System.out.println(reportDate);

		System.out.println("$$$$$$$$$$$$$$$$$$$$$$$");
		//String string = "January 2, 2010";
		Date date;
		try {
		date = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss", Locale.US).parse("01/01/2013 20:20:11");
		System.out.println(df.format(date));
		} catch (ParseException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
		}
		}

}
